<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>潜在客户管理</title>
    <%@include file="../../../static/common/common.jsp" %>
    <script src="/static/js/client.js"></script>
</head>
<!--非常关键-->
<jsp:include page="/static/style/loader.jsp"></jsp:include>
<body>
<table id="client_datagrid"></table>
<div id="client_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a id="changeState_btn" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
       data-cmd="drain">流失</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-user',plain:true" data-cmd="tracking">跟踪</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-large-large',plain:true" data-cmd="resourcePool">放入资源池</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-mini-edit',plain:true" data-cmd="exam">考试登记</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-update',plain:true" data-cmd="positive">转正</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-checked',plain:true" data-cmd="formal">查看正式学员</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query">高级查询</a>
</div>
<div id="save_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
</div>
<div id="exam_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save_exam">提交</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel_exam">取消</a>
</div>
<div id="query_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save_query">提交</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel_query">取消</a>
</div>
<div id="formal_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save_formal">提交</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel_formal">取消</a>
</div>
<div id="client_dialog">
    <form id="client_form" method="post">
        <input id="clientId" type="hidden" name="id">
        <table align="center" style="margin-top: 15px" cellspacing="10">
            <tr>
                <td>姓名:</td>
                <td><input class="easyui-textbox" name="name" required="true" id="name" delay="200"
                           invalidMessage="该用户已存在"
                ></td>
                <td>年龄:</td>
                <td><input class="easyui-textbox" name="age" required="true"></td>
                <td>性别:</td>
                <td><input class="easyui-combobox" name="gender"
                           data-options="data:[{name:'男',value:'1'},{name:'女',value:'0'}],textField:'name',valueField:'value',panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td>电话:</td>
                <td><input class="easyui-textbox" name="tel" id="tel" required="true"
                ></td>
                <td>QQ:</td>
                <td><input class="easyui-textbox" name="qq"></td>
                <td>Email:</td>
                <td><input class="easyui-textbox" name="email"></td>
            </tr>
            <tr>
                <td>建档日期:</td>
                <td><input class="easyui-datetimebox" name="createTime"
                ></td>
                <td>微信:</td>
                <td><input class="easyui-textbox" name="wechat"></td>
                <td>学校:</td>
                <td><input class="easyui-textbox" name="schoolName"></td>
            </tr>
            <tr>
                <td>录入时间:</td>
                <td><input class="easyui-datetimebox" name="inputTime"
                ></td>
                <td>地址:</td>
                <td><input class="easyui-textbox" name="address"></td>
                <td>学历:</td>
                <td><input class="easyui-combobox" name="education"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=education',valueField:'id',textField:'name',panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td>下次跟进:</td>
                <td><input class="easyui-datetimebox" name="nextTime"
                ></td>
                <td>专业:</td>
                <td><input class="easyui-textbox" name="major"></td>
                <td>来源:</td>
                <td><input class="easyui-combobox" name="source"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=source',valueField:'id',textField:'name',panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td>约访时间:</td>
                <td><input class="easyui-datetimebox" name="postionTime"
                ></td>
                <td>介绍学员:</td>
                <td><input class="easyui-combobox" name="studentId"
                           data-options="url:'/formalStudent/selectAll.do',valueField:'id',textField:'name',panelHeight:'auto'"></td>
                <td>介绍人:</td>
                <td><input class="easyui-textbox" name="introducer" ></td>
            </tr>
            <tr>
                <td>客户类型:</td>
                <td><input class="easyui-combobox" name="customerType"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=clientType',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>意向程度:</td>
                <td><input class="easyui-combobox" name="intention.id"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=intentionDegree',valueField:'id',textField:'name',panelHeight:'auto'">
                </td>
                <td>当前状态:</td>
                <td><input class="easyui-combobox" name="state"
                           data-options="data:[{name:'正式学员',value:'1'},{name:'正常',value:'0'}],textField:'name',valueField:'value',panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td>入学时间:</td>
                <td><input class="easyui-datebox" name="entranceTime"
                ></td>
                <td>意向班级:</td>
                <td><input class="easyui-combobox" name="intentionClass.id"
                           data-options="url:'/classRoom/selectAll.do',valueField:'id',textField:'className',panelHeight:'auto'">
                </td>
                <td>学校客户:</td>
                <td><input class="easyui-combobox" name="customer"
                           data-options="url:'/school/selectAll.do',valueField:'id',textField:'school',panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td>意向校区:</td>
                <td><input class="easyui-combobox" name="intentionArea.id"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=intentionArea',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>意向学科:</td>
                <td><input class="easyui-combobox" name="intentionMajor"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=intentionMajor',valueField:'id',textField:'name',panelHeight:'auto'">
                </td>
                <td>零付款:</td>
                <td>是<input type="radio" name="payment" value="true">&nbsp;否<input type="radio" name="payment"
                                                                                   value="false"></td>
            </tr>
            <tr>
                <td colspan="4">关注问题:<textarea name="question" id="client_question" cols="80" rows="4"></textarea></td>
            </tr>
            <tr>
                <td colspan="4">备注:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<textarea name="remark" id="client_remark"
                                                                                       cols="80" rows="4"></textarea>
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="exam_dialog">
    <form id="exam_form" method="post">
        <input id="examId" type="hidden" name="id">
        <table align="center" style="margin-top: 15px" cellspacing="10">
            <tr><input type="hidden" name="salerName"></tr>
            <tr><input type="hidden" name="name"></tr>
            <tr>
                <td>姓名:</td>
                <td><input class="easyui-textbox" name="name" readonly="true">
            </tr>
            <tr id="password_tr">
                <td>QQ:</td>
                <td><input class="easyui-textbox" name="qq" readonly="true"></td>
            </tr>
            <tr>
                <td>电话:</td>
                <td><input class="easyui-textbox" name="tel" readonly="true"></td>
            </tr>
            <tr>
                <td>意向班级:</td>
                <td><input class="easyui-textbox" name="wantClass" readonly="true" id="intentionClass"></td>
            </tr>
            <tr>
                <td>考试时间:</td>
                <td><input class="easyui-datetimebox" name="examTime"></td>
            </tr>
            <tr>
                <td>备注:</td>
                <td><input class="easyui-textbox" name="remark">
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="query_dialog">
    <form id="query_form" method="post">
        <table align="center" style="margin-top: 15px" cellspacing="10">
            <tr>
                <td>姓名:</td>
                <td><input class="easyui-textbox" name="name">
                <td>年龄:</td>
                <td><input class="easyui-textbox" name="minAge">~<input class="easyui-textbox"
                                                                        name="maxAge"></td>
                <td>性别:</td>
                <td><input class="easyui-combobox" name="gender"
                           data-options="data:[{name:'男',value:'1'},{name:'女',value:'0'}],textField:'name',valueField:'value',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>学历:</td>
                <td><input class="easyui-combobox" name="education"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=education',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>意向程度:</td>
                <td><input class="easyui-combobox" name="intention"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=intentionDegree',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>当前状态:</td>
                <td><input class="easyui-combobox" name="state"
                           data-options="data:[{name:'正式学员',value:'1'},{name:'正常',value:'0'}],textField:'name',valueField:'value',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>意向班级:</td>
                <td><input class="easyui-combobox" name="intentionClass"
                           data-options="url:'/classRoom/selectAll.do',valueField:'id',textField:'className',panelHeight:'auto'"
                ></td>
                <td>意向校区:</td>
                <td><input class="easyui-combobox" name="intentionArea"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=intentionArea',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>意向学科:</td>
                <td><input class="easyui-combobox" name="intentionMajor"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=intentionMajor',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
            </tr>
        </table>
    </form>
</div>
<div id="formal_dialog">
    <form id="formal_form" method="post">
        <input name="clientId" type="hidden">
        <table align="center" style="margin-top: 15px">
            <tr align="left">
                <th><font color="blue">个人资料</font></th>
            </tr>
            <tr>
                <td>姓名:</td>
                <td><input class="easyui-textbox" name="name">
                <td>年龄:</td>
                <td><input class="easyui-textbox" name="age">
                <td>性别:</td>
                <td><input class="easyui-combobox" name="gender"
                           data-options="data:[{name:'男',value:'1'},{name:'女',value:'0'}],textField:'name',valueField:'value',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>电话:</td>
                <td><input class="easyui-textbox" name="tel"
                ></td>
                <td>QQ:</td>
                <td><input class="easyui-textbox" name="qq"
                ></td>
                <td>Email:</td>
                <td><input class="easyui-textbox" name="email"
                ></td>
            </tr>
            <tr>
                <td>学校:</td>
                <td><input class="easyui-textbox" name="schoolName"
                ></td>
                <td>专业:</td>
                <td><input class="easyui-textbox" name="major"
                ></td>
                <td>学历:</td>
                <td><input class="easyui-combobox" name="education"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=education',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>地址:</td>
                <td><input class="easyui-textbox" name="address"
                ></td>
                <td>来源:</td>
                <td><input class="easyui-combobox" name="source"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=source',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>客户类型:</td>
                <td><input class="easyui-combobox" name="customerType.id"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=clientType',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>工龄:</td>
                <td><input class="easyui-textbox" name="workYear"
                ></td>
                <td>选择班级:</td>
                <td><input class="easyui-combobox" name="intentionClass.id"
                           data-options="url:'/classRoom/selectAll.do',valueField:'id',textField:'className',panelHeight:'auto'"
                ></td>
                <td>外语水平:</td>
                <td><input class="easyui-combobox" name="foreignLangLevel"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=foreignLangLevel',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>营销人员:</td>
                <td><input class="easyui-combobox" name="salemen.id"
                           data-options="url:'/employee/getSaleMen.do',valueField:'id',textField:'username',panelHeight:'auto'"
                ></td>
                <td>所在校区:</td>
                <td><input class="easyui-combobox" name="intentionArea"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=intentionArea',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>入学时间:</td>
                <td><input class="easyui-datebox" name="entranceTime"
                ></td>
            </tr>
            <tr align="left">
                <th><font color="blue">缴费信息</font></th>
            </tr>
            <tr>
                <td>计划学费:</td>
                <td><input class="easyui-textbox" name="programTuition"
                ></td>
                <td>优惠金额:</td>
                <td><input class="easyui-textbox" name="discountAmount"
                ></td>
                <td>其他优惠:</td>
                <td><input class="easyui-textbox" name="otherDiscount"
                ></td>
            </tr>
            <tr>
                <td>其他费用:</td>
                <td><input class="easyui-textbox" name="otherExpense"
                ></td>
                <td>优惠说明:</td>
                <td><input class="easyui-textbox" name="discountExplain"
                ></td>
                <td>总费用:</td>
                <td><input class="easyui-textbox" name="totalTuition"
                ></td>
            </tr>
            <tr>
                <td>预付学费:</td>
                <td><input class="easyui-textbox" name="planTuition"
                ></td>
                <td>已付学费:</td>
                <td><input class="easyui-textbox" name="prepaidTuition"
                ></td>
                <td>还欠学费:</td>
                <td><input class="easyui-textbox" name="debt"
                ></td>
            </tr>
            <tr>
                <td>最后付款时间:</td>
                <td><input class="easyui-datebox" name="finalPayment"
                ></td>
                <td>付款方式:</td>
                <td><input class="easyui-combobox" name="paymentType.id"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=paymentType',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>完成付款:</td>
                <td>是<input type="radio" name="completePayment" value="true">&nbsp;否<input type="radio" name="payment"
                                                                                           value="false"></td>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
